home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000379_fdc@columbia.edu_Wed Sep 18 14:05:37 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
50 lines
Article: 13713 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Multiple line IF statement?
Date: 18 Sep 2002 14:05:28 -0400
Organization: Columbia University
Lines: 33
Message-ID: <amaf98$es6$1@watsol.cc.columbia.edu>
References: <amadkm$8bh$1@msunews.cl.msu.edu>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1032372331 8046 128.59.39.139 (18 Sep 2002 18:05:31 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 18 Sep 2002 18:05:31 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13713
In article <amadkm$8bh$1@msunews.cl.msu.edu>,
Robert Gibbens <rgibbens@redskytech.com> wrote:
: Is it possible in C-Kermit (Kermit 95, Win2k), to do multiple line IF
: statements?
:
Sure.
: For example, if I encounter a failure, I would like to write the failure to
: my log file and then exit. When I try this....
:
: if > \%a \%b -
: WRITE File \v(exitstatus) \v(date) \v(time) \%s FAILED
: after \%a tries, end 1
:
: ....it simply writes the whole line to the log file and then continues
: running the script. I would like the "end 1" to execute also
As described in the manual (second edition) and shown in the many sample
scripts in our script library:
http://www.columbia.edu/kermit/ckscripts.html
if > \%a \%b {
WRITE File \v(exitstatus) \v(date) \v(time) \%s FAILED after \%a tries
end 1
}
You can also have an ELSE part, and you can nest them, etc. For details
about improved IF command syntax, see:
http://www.columbia.edu/kermit/ckermit70.html#x7.20
- Frank